﻿using AssetSystem.models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AssetSystem.view
{
    public partial class PasswordInputForm : Form
    {
        public string Password { get; private set; }
        public PasswordInputForm()
        {
            InitializeComponent();
            // 设置窗口居中
            this.StartPosition = FormStartPosition.CenterScreen;
        }



        private void btnOK_Click(object sender, EventArgs e)
        {
            Password = txtPassword.Text;
            DialogResult = DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

       

    }
}
